//
//  ST_TimeDownToors.h
//  ST_BaseMall
//
//  Created by 李宇廷 on 2022/9/11.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^timerBlock)(NSInteger time);

@interface ST_TimeDownToors : NSObject

/* time */
@property (nonatomic, assign) NSInteger time;

/* timerBlock */
@property (nonatomic, copy) timerBlock timeBlock;

+ (ST_TimeDownToors *)shareTimer;

- (void)startTimerWithTime:(NSInteger)time complate:(timerBlock)complate;

- (void)cancelTimer;

@end

NS_ASSUME_NONNULL_END
